<?php
App::import('Vendor','pdf');
$pdf=new pdf();
$pdf->header();

$pdf->setAccreditationNumber($data['Patient']['accreditation']);
$pdf->setHospitalLevel($data['Patient']['category']);
$pdf->setHospitalName($data['Patient']['hospitalname']);
$pdf->setHospitalStreet($data['Patient']['hospitalstreet']);
$pdf->setHospitalMunicipality($data['Patient']['hospitalcity']);
$pdf->setHospitalBarangay($data['Patient']['hospitalbarangay']);
$pdf->setHospitalProvince($data['Patient']['hospitalprovince']);
$pdf->setHospitalZipcode($data['Patient']['hospitalzipcode']);
$pdf->setMemberLastName($data['Patient']['memberlastname']);
$pdf->setMemberMiddleName($data['Patient']['membermiddlename']);
$pdf->setMemberFirstName($data['Patient']['memberfirstname']);
$pdf->setMemberNumber($data['Patient']['membernumber']);
$pdf->setMemberStreet($data['Patient']['memberstreet']);
$pdf->setMemberMunicipality($data['Patient']['membercity']);
$pdf->setMemberBarangay($data['Patient']['memberbarangay']);
$pdf->setPatientLastName($data['Patient']['patientlastname']);
$pdf->setPatientFirstName($data['Patient']['patientfirstname']);
$pdf->setPatientMiddlename($data['Patient']['patientmiddlename']);
$pdf->setPatientAge($data['Patient']['patientage']);
$pdf->setPatientGender($data['Patient']['patientgender']);
$pdf->setDateAdmitted($data['Patient']['dateadmitted']);
$pdf->setTimeAdmitted($data['Patient']['timeadmitted']);
$pdf->setDateDischarge($data['Patient']['datedischarged']);
$pdf->setTimeDischarge($data['Patient']['timedischarged']);
$pdf->setNumberDayClaim($data['Patient']['numberday']);
$pdf->setDateOfDeath($data['Patient']['datedeath']);

$pdf->setActualRoomCharge($rohc);
$pdf->setHospitalBenefitRoom($rhc);
$pdf->setPatientBenefitRoom($rpc);

$pdf->setActualDrugsCharge($ahc);
$pdf->setHospitalBenefitsDrug($hc);
$pdf->setPatientBenefitsDrug($pc);

$pdf->setActualXrayCharge($xohc);
$pdf->setHospitalBenefitsXray($xhc);
$pdf->setPatientBenefitsXray($xpc);

$pdf->setActualChargeOperation($oohc);
$pdf->setHospitalBenefitsOperation($ohc);
$pdf->setPatientBenefitsOperation($opc);

$pdf->setActualChargeConfinement($chc);
$pdf->setHospitalBenefitConfinement($chc1);
$pdf->setPatientBenefitConfinement($cpc);

$pdf->setTotalActualCharge($totalactual);
$pdf->setTotalHospitalBenefit($totalhospital);
$pdf->setTotalPatientBenefit($totalpatient);

$pdf->part1();
$pdf->ezStream(); 
?>